﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations.Schema;
using RealtReview.DataAccess.Entities.IdentityProvider;

namespace RealtReview.DataAccess.Entities
{
    [Table("News")]
    public class News : BaseEntity
    {
        public News()
        {
            Comments = new Collection<Comment>();
        }
        public DateTime DateCreated { get; set; }
        public Guid UserId { get; set; }
        public ApplicationUser User { get; set; } 
        public string Title { get; set; }
        public string Description { get; set; }
        public virtual ICollection<Comment> Comments { get; set; }
    }
}